import request from '../index'
import {IPage} from '../user/index'
interface ISourceData {
    Id?:string,
    reFoName:string, 
    reSpecs:string, 
    reNum:string, 
    reSource:string, 
    reReason:string,
    reStatus:string,
    rePlan:string,
    reTime:string
}

// 食品基本信息查询
export function getGoodRecall(pageConfig:IPage,values:any) {
    return request({
        url:"good/recall",
        data:{
            values,
            pageConfig
        }
    })
}

// 食品基本信息添加
export function addGoodRecall(sourceData:ISourceData) {
    return request({
        url:"good/recall/add",
        data:sourceData
    })
}
// 食品基本信息编辑
export function editGoodrecall(sourceData:ISourceData) {
    return request({
        url:"good/recall/edit",
        data:sourceData
    })
}
// 食品基本信息删除
export function deleteGoodRecall(Id:number) {
    return request({
        url:"good/recall/delete",
        data:{
            Id:Id
        }
    })
}
